home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / hardware-part1 / 9953 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  11.9 KB

  1. Path: rapidnet.com!wblock
  2. From: wblock@rapidnet.com (Warren Block)
  3. Newsgroups: comp.sys.amiga.hardware
  4. Subject: SCSI Examples
  5. Date: 10 Apr 1996 14:18:14 GMT
  6. Organization: RapidNet
  7. Message-ID: <4kgfv6$14v@rapidnet.com>
  8. NNTP-Posting-Host: rapidnet.com
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Reposted now that our Usenet access is back up... 8-)
  12.  
  13.            SCSI Examples: Excerpted From The A4000 Hardware Guide
  14.                        Copyright (C) 1995 Warren Block
  15.                         Contact wblock@rapidnet.com.
  16.                   (This file may be freely redistributed.)
  17.  
  18.       (The full Guide can be found at Aminet:hard/misc/a4khard_v3.lha)
  19.  
  20. -----------------------------------------------------------------------------
  21.  
  22.   It seems that the SCSI bus is one of the most misunderstood aspects of
  23.   connecting hard drives and other peripherals to the A4000 (or, for that
  24.   matter, any other Amiga model). This section of the guide is an attempt to
  25.   provide some simple examples of proper SCSI device connections. Please note
  26.   that in the following section, and in the Guide as a whole, I have used the
  27.   common term "controller" when referring to disk adapter boards, although
  28.   the more accurate description for both SCSI and IDE would be "host
  29.   adapter."
  30.  
  31.   Definitions
  32.  
  33.   Since understanding SCSI requires a background in the jargon, a few basic
  34.   definitions might be helpful:
  35.  
  36.     SCSI
  37.  
  38.     This is the original standard, now also known as SCSI-1. The maximum
  39.     theoretical transfer rate is 5 megabytes per second, although most
  40.     combinations of drives and controllers do much less, usually less than
  41.     two megabytes per second. Total length of the SCSI bus cannot exceed six
  42.     meters.
  43.  
  44.     SCSI-2
  45.  
  46.     An extension of the SCSI command set. Most CD-ROM drives that are double- 
  47.     speed or faster are SCSI-2. Note that contrary to popular belief, this
  48.     doesn't go any faster than good old SCSI-1.
  49.  
  50.     Fast SCSI-2
  51.  
  52.     Here's where the speed was increased. Fast SCSI-2 has a maximum transfer
  53.     rate of 10 megabytes per second, synchronous. Again, this is theoretical,
  54.     and anything more than a third of that should be considered excellent.
  55.  
  56.     Wide SCSI And Differential SCSI
  57.  
  58.     SCSI transfers data over an 8-bit wide data path. A variation called Wide
  59.     SCSI uses a 16-bit wide data path, potentially doubling transfer rates.
  60.     Another variation is differential SCSI, which uses differential signal
  61.     cables to provide a total bus length of up to 25 meters. Neither of these
  62.     variations will be described in any detail here, since there don't seem
  63.     to be any Amiga implementations of controllers for them. Adapters are
  64.     available to connect Wide or Differential SCSI devices to normal SCSI
  65.     controllers, though, so it is possible to connect them to the Amiga.
  66.  
  67.   Termination
  68.  
  69.   SCSI bus systems require an impedance-matching terminator circuit at each
  70.   end of the bus for reliable operation. Many people find termination to be
  71.   complex, but the subject can be simplified a great deal by remembering one
  72.   simple rule: the SCSI bus needs to be terminated at both ends, and *only*
  73.   at the ends.
  74.  
  75.   The most common mistake in SCSI termination is assuming that the SCSI
  76.   controller itself doesn't count; in fact, it does count as a device, and
  77.   the termination rules apply to it just like other devices. Many Amiga
  78.   controllers have the termination resistors soldered into place, under the
  79.   assumption that only internal SCSI devices will be attached. If both
  80.   internal and external devices are to be used, it is necessary to remove
  81.   these resistors. SIP sockets may be soldered in their place to provide the
  82.   greatest versatility, or you can just use external terminators.
  83.  
  84.   Terminating resistors are usually SIP resistor packs; most are yellow,
  85.   blue, or black, and there may be one, two, or three of them. External
  86.   terminators look like a connector with no cable attached, and can be found
  87.   in Centronics 50-pin, DB25, and high-density 50 configurations. Some
  88.   devices (notably, many external CD-ROM drives) have a termination switch.
  89.  
  90.   All of the termination schemes described so far are known as "passive"
  91.   terminators. Electronically, they connect each signal pin to +5V through a
  92.   220 ohm resistor, and to ground through a 330 ohm resistor. This voltage
  93.   divider circuit provides impedance matching for the SCSI bus.
  94.  
  95.   The alternative to a passive terminator is an "active" terminator, which
  96.   connects each of the SCSI signal pins through a 110 ohm resistor to a
  97.   precision +2.85V regulator (an LT1086CT, for example) which is powered by
  98.   +5V. Active terminators are superior to passive terminators simply because
  99.   they are active; unlike the fixed resistors in a passive terminator, the
  100.   active terminator's voltage regulator will track varying voltages and
  101.   properly terminate the SCSI bus. Active terminators can cure many problems
  102.   with unreliable SCSI devices; their only disadvantage is that they cost a
  103.   bit more (Dalco sells them for between thirty and forty dollars). Active
  104.   termination chips are made by Dallas Semiconductor and Texas Instruments.
  105.  
  106.   Any combination of passive and active terminators may be used, although two
  107.   active terminators would be best. In practice, passive/passive or passive/
  108.   active are usually adequate.
  109.  
  110.   Termination Power
  111.  
  112.   Terminator power (+5V) is supposed to be supplied on pin 26 of the 50-pin
  113.   IDC header. But SCSI devices are not required to supply this power; many
  114.   have jumpers to enable or disable it. So it is possible to have a proper
  115.   termination setup, but no power provided to the terminators. Naturally,
  116.   this will cause problems. Make sure that at least one device is supplying
  117.   termination power to the SCSI bus, preferably the controller, since
  118.   external devices may be turned off, which would deprive the rest of the bus
  119.   of termination power.
  120.  
  121.   Cable Configurations
  122.  
  123.   Internal SCSI devices are usually connected with 50-conductor ribbon cable.
  124.   50-pin IDC connectors are crimped onto the cable for each device to be
  125.   attached. "Stub" cables of no more than 3 centimeters off the main cable
  126.   are allowed by the SCSI standard, but it's better to avoid them altogether
  127.   by running the cable direct from one device to the next, with no branches
  128.   off the main bus at all.
  129.  
  130.   External SCSI device cables can use several connectors: Centronics 50-pin,
  131.   DB25, or high-density 50-pin (commonly referred to as SCSI-2, since many
  132.   Fast SCSI-2 adapters use this type of connector). Adapter cables may have
  133.   any combination of these three basic types.
  134.  
  135.   The SCSI standard states that the total length of the SCSI bus, including
  136.   internal and external cable, must not exceed six meters. In practice, some
  137.   devices and cable combinations may limit this severely, particularly cables
  138.   with DB25 connectors (since Apple created the DB25 "pseudo-SCSI" cable by
  139.   simply discarding all those "extra" grounds that helped make SCSI capable
  140.   of running long distances in the first place). Conversely, some SCSI bus
  141.   implementations can go farther than the standard suggests.
  142.  
  143.   SCSI Address Numbers
  144.  
  145.   Each SCSI device (including the controller) has an address between 0 and
  146.   7 assigned to it by the user. These numbers are usually set as a binary
  147.   number with three jumpers. Controllers often have no jumpers, either
  148.   requiring software to change their address, or simply not being able to
  149.   change it at all. Standard Amiga controllers of either type default to a
  150.   SCSI address of 7.
  151.  
  152.   The rules regulating addresses are pretty simple: each device must have
  153.   a unique address. (There is no physical "order" in which the addesses must
  154.   occur; you can use any order or combination of numbers, as long as there is
  155.   only one device with a given address.)
  156.  
  157.   Since the Amiga scans the SCSI bus for bootable devices starting with
  158.   address 0 and proceeding to address 7, it is advised that you assign
  159.   address 0 to the boot hard drive, and set "HiID" to "On" for this drive in
  160.   the Rigid Disk Block (RDB). This will prevent the system for looking for
  161.   other hard drives with a higher boot priority, making for the quickest
  162.   booting possible, and preventing the system from trying to boot off of a
  163.   higher- numbered CD-ROM drive. (Check the Aminet disk/misc directory for
  164.   RDB utility programs.)
  165.  
  166.   LUNs
  167.  
  168.   Logical Unit Numbers are a now seldom-used feature of the SCSI standard.
  169.   LUNs provide a way to access more than one device at a given SCSI address.
  170.   For example, some Adaptec SCSI-to-MFM adapter boards like the 4000A could
  171.   control two MFM hard drives. However, the 4000A board used only a single
  172.   SCSI address; to access each drive, an LUN was used: 0 for the first drive
  173.   and 1 for the second. With modern SCSI devices, LUNs are relatively rare.
  174.  
  175.   Example SCSI Bus Connections
  176.  
  177.   These examples show connections to the A2091 controller (see Drives/
  178.   2091 Reference), but other controllers will be similar.
  179.  
  180.   In Example 1, the 200M hard drive is used as the boot drive, and the "HiID"
  181.   flag is set to "On" in this drive's Rigid Disk Block. (The HiID flag may be
  182.   called by another name, like LastDrive or HighDrive.) For examples 2 and 3,
  183.   the 540M drive is used as the boot drive, and the HiID flag is set in that
  184.   drive's RDB.
  185.  
  186.   Example 1: 2091 controller, internal 200M SCSI-1 hard drive. Cable
  187.              connections are 50-conductor ribbon.
  188.      ________________        ________________
  189.     |      2091      |      |  200M SCSI-1   |
  190.     |   Terminated   |------|  Terminated    |
  191.     |   Address 7    |      |  Address 0     |
  192.     |________________|      |________________|
  193.  
  194.  
  195.   Example 2: 2091 controller, internal 200M SCSI-1 hard drive, internal 540M
  196.              Fast SCSI-2 hard drive. Cable connections are 50-conductor
  197.              ribbon. The SCSI-1 drive has been renumbered as address 1, and
  198.              the new Fast SCSI-2 drive is now set at address 0 and used as a
  199.              boot drive, to provide better performance on the system
  200.              partitions. (Even though it will only be accessed at SCSI-1
  201.              rates, it is a newer drive, and will probably have significantly
  202.              better transfer rates than the older 200M drive.)
  203.      ________________        ________________        ________________
  204.     |      2091      |      |  200M SCSI-1   |      |540M Fast SCSI-2|
  205.     |   Terminated   |------| Not Terminated |------|  Terminated    |
  206.     |   Address 7    |      |   Address 1    |      |  Address 0     |
  207.     |________________|      |________________|      |________________|
  208.  
  209.  
  210.   Example 3: 2091 controller, internal 200M SCSI-1 hard drive, internal 540M
  211.              Fast SCSI-2 hard drive, external SCSI-2 CD-ROM drive. The cable
  212.              from the CD-ROM drive to the A2091 is a Centronics 50-pin to
  213.              DB25 adapter cable, and the internal cables are 50-conductor
  214.              ribbon. An active terminator is attached to the last available
  215.              external SCSI connector on the CD-ROM drive. Note that the
  216.              terminating resistors on the A2091 have been removed so that the
  217.              SCSI bus is terminated only at the ends (the CD-ROM and the 540M
  218.              drive).
  219.    ________________
  220.   | CD-ROM SCSI-2  |
  221.   |   Terminated   |---. External cable connected to A2091
  222.   |   Address 4    |   | external SCSI DB25 connector
  223.   |________________|   |
  224.        External        |
  225.                        |
  226.            ____________|___        ________________        _______________
  227.           |      2091      |      |  200M SCSI-1   |      |540 Fast SCSI-2|
  228.           | Not Terminated |------| Not Terminated |------|  Terminated   |
  229.           |   Address 7    |      |   Address 1    |      |  Address 0    |
  230.           |________________|      |________________|      |_______________|
  231.  
  232. --
  233. .----------------------------------------------------------------.       
  234. |  Warren R. Block    *  New EMail Address: wblock@rapidnet.com  |  
  235. |  Rapid City SD USA  *  Brought to you in majestic INEMASCOP!   |      
  236. `----------------------------------------------------------------'      
  237.